/* 视觉动效风格天气卡片 */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes particle-move {
    0% { transform: translateY(0) translateX(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100px) translateX(var(--x-move)); opacity: 0; }
}

.visual-motion-card {
    width: 100%;
    background-color: rgba(20, 30, 48, 0.8);
    border-radius: 24px;
    padding: 25px;
    color: white;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.visual-motion-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
}

.visual-motion-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #4158D0, #C850C0, #FFCC70);
    background-size: 400% 400%;
    animation: gradient-shift 15s ease infinite;
    opacity: 0.3;
    z-index: 0;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.visual-motion-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.visual-motion-particles::before,
.visual-motion-particles::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.3);
    animation: particle-move 8s linear infinite;
    --x-move: 20px;
}

.visual-motion-particles::before {
    top: 20%;
    left: 30%;
    animation-delay: 0s;
    --x-move: 30px;
}

.visual-motion-particles::after {
    top: 70%;
    left: 60%;
    animation-delay: 4s;
    --x-move: -20px;
}

.visual-motion-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.visual-motion-card-location {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
}

.visual-motion-card-location::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #C850C0, transparent);
}

.visual-motion-card-date {
    font-size: 14px;
    opacity: 0.8;
    font-weight: 300;
}

.visual-motion-card-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.visual-motion-card-temp {
    font-size: 64px;
    font-weight: 600;
    line-height: 1;
    background: linear-gradient(135deg, #fff, #c0c0c0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.visual-motion-card-temp span {
    font-size: 32px;
    vertical-align: top;
    font-weight: 300;
}

.visual-motion-card-icon-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-motion-card-icon {
    width: 70px;
    height: 70px;
    position: relative;
    z-index: 2;
    animation: pulse 3s ease-in-out infinite;
}

.visual-motion-card-icon-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 204, 112, 0.8) 0%, rgba(255, 204, 112, 0) 70%);
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite;
    z-index: 1;
}

.visual-motion-card-description {
    font-size: 20px;
    text-align: center;
    margin-bottom: 25px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.visual-motion-card-details {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
}

.visual-motion-card-details-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.visual-motion-card-details-item:hover {
    transform: translateY(-5px);
}

.visual-motion-card-details-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 8px;
    opacity: 0.8;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.humidity-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 3.571c3.658 5.437 6 9.223 6 12.503 0 3.268-2.691 5.926-6 5.926s-6-2.658-6-5.925c0-3.281 2.342-7.066 6-12.504zm0-3.571c-4.87 7.197-8 11.699-8 16.075 0 4.378 3.579 7.925 8 7.925s8-3.547 8-7.925c0-4.376-3.13-8.878-8-16.075z'/%3E%3C/svg%3E");
}

.wind-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M11 10h-11v-2h11c.552 0 1-.448 1-1s-.448-1-1-1c-.403 0-.747.242-.905.587l-1.749-.956c.499-.965 1.494-1.631 2.654-1.631 1.657 0 3 1.343 3 3s-1.343 3-3 3zm7 7.586l-2.586-2.586h-3.414v-2h3.414l2.586-2.586v7.172zm5.414-4.586l-2.414 2.414-2.414-2.414 2.414-2.414 2.414 2.414zm-14.414 3h-9v-2h9c.552 0 1-.448 1-1s-.448-1-1-1c-.403 0-.747.242-.905.587l-1.749-.956c.499-.965 1.494-1.631 2.654-1.631 1.657 0 3 1.343 3 3s-1.343 3-3 3z'/%3E%3C/svg%3E");
}

.pressure-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 0c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm0 22c-5.514 0-10-4.486-10-10s4.486-10 10-10 10 4.486 10 10-4.486 10-10 10zm1-10v-3h-2v3h-3v2h3v3h2v-3h3v-2h-3z'/%3E%3C/svg%3E");
}

.visual-motion-card-details-label {
    font-size: 12px;
    opacity: 0.7;
    margin-bottom: 5px;
    font-weight: 300;
}

.visual-motion-card-details-value {
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(135deg, #fff, #c0c0c0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .visual-motion-card-temp {
        font-size: 48px;
    }
    
    .visual-motion-card-temp span {
        font-size: 24px;
    }
    
    .visual-motion-card-icon {
        width: 60px;
        height: 60px;
    }
} 